﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mathematics.Expressions;

namespace Mathematics.Expressions
{
    public class MultiplyOperator:Operator
    {
        public MultiplyOperator(MathExpression leftTerm, MathExpression rightTerm) 
            : base(leftTerm, rightTerm)
        {
        }

        public override string OperatorSymbol
        {
            get { return "*"; }
        }

        protected override ExpressionValue PerformOperation(ExpressionValue left, ExpressionValue right)
        {
            return left * right;
        }

    }
}
